﻿using AutoMapper;
using taigu.WeChat;

namespace taigu
{
    public class taiguApplicationAutoMapperProfile : Profile
    {
        public taiguApplicationAutoMapperProfile()
        {
            CreateMap<WeChat.CreateUpdateWeChatUserDto, WeChat.WeChatUsers>();
            CreateMap<WeChat.CreateWeChatUserDto, WeChat.WeChatUsers>();
            CreateMap<WeChat.WeChatUsers, WeChat.WeChatUserDto>();
            CreateMap<WeChat.WeChatUsers, WeChat.WeChatUserInfoDto>();
            CreateMap<WeChat.CreateWeChatUserDto, WeChat.CreateUpdateWeChatUserDto>();

            CreateMap<WeChat.UpdatePostInfoDto, WeChat.PostInfo>();
            CreateMap<WeChat.CreatePostInfoDto, WeChat.PostInfo>();
            CreateMap<WeChat.PostInfo, WeChat.PostInfoDto>();
            CreateMap<WeChat.PostInfoDto, WeChat.PostInfo>();

           CreateMap<WeChat.PostLikeDto, WeChat.PostLike>();
           CreateMap<WeChat.PostLike, WeChat.PostLikeDto>();

            CreateMap<WeChat.PostComments, WeChat.PostCommentsDto>();
            CreateMap<WeChat.PostCommentsDto, WeChat.PostComments>();
            CreateMap<WeChat.PostComments, WeChat.PostCommentsShowDto>();
            CreateMap<WeChat.PostCommentsShowDto, WeChat.PostComments>();
            CreateMap<WeChat.PostComments, WeChat.PostCommentsCreateDto>();
            CreateMap<WeChat.PostCommentsCreateDto, WeChat.PostComments>();
            CreateMap<WeChat.PostComments, WeChat.PostCommentsUpdateDto>();
            CreateMap<WeChat.PostCommentsUpdateDto, WeChat.PostComments>();


            CreateMap<WeChat.OrganizationStruct, WeChat.OrganizationStructDto>();
            CreateMap<WeChat.OrganizationStructDto, WeChat.OrganizationStruct>();
            CreateMap<WeChat.OrganizationStruct, WeChat.OrganizationStructCreateDto>();
            CreateMap<WeChat.OrganizationStructCreateDto, WeChat.OrganizationStruct>();
            CreateMap<WeChat.OrganizationStruct, WeChat.OrganizationStructUpdateDto>();
            CreateMap<WeChat.OrganizationStructUpdateDto, WeChat.OrganizationStruct>();

            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */

            CreateMap<WeChat.Address, AddressDto>();
            CreateMap<CreateAddressDto, WeChat.Address>();

            CreateMap<WeChat.Awards, AwardsDto>();
            CreateMap<CreateUpdateAwardsDto, WeChat.Awards>();  

            CreateMap<db_task,db_taskDTO>();
            CreateMap<db_taskDTO, db_task>();

            CreateMap<CreateUpdatedb_taskDTO,db_task>();
            CreateMap<db_task,CreateUpdatedb_taskDTO>();

        }
    }
}
